package com.lry.crawlers.video.service.impl;

import com.lry.crawlers.video.entity.VideoChapter;
import com.lry.crawlers.video.mapper.VideoChapterMapper;
import com.lry.crawlers.video.service.VideoChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoChapterServiceImpl implements VideoChapterService {

    @Autowired
    VideoChapterMapper videoChapterMapper;


    @Override
    public int setVideoChapter(VideoChapter videoChapter) {
        int insert = videoChapterMapper.insert(videoChapter);
        return insert;
    }

    @Override
    public int setVideoChapters(List<VideoChapter> videoChapters) {
        int i = videoChapterMapper.insertBatchSomeColumn(videoChapters);
        return i;
    }


}

